<?php
declare (strict_types=1);

namespace app\index\controller;

use think\facade\View;

class Permission extends IndexBase
{
    public function closed()
    {
        if ($this->_checkWebsiteStatus($this->_websiteCode)){
            return redirect('/');
        }

        return View::fetch('common_closed');
    }

    public function notFound(): string
    {
        return View::fetch('common_404');
    }

    public function systemError(): string
    {
        return View::fetch('common_500');
    }
}
